<template>
  <view class="lightColour navTop">
    <van-nav-bar title="寄卖专区" left-arrow fixed class="loginNav" @click-left="onClickLeft" />
    <div class="line"></div>

    <div class="jimai">
      <div>
          <navigator url="consignmentDetails" hover-class="none">
          <h2>强生婴儿牛奶沐浴露</h2>
          <div>
            <span>1000</span>
            <p>商品价格</p>
          </div>
          <div>
            <span>
              <van-icon name="clock-o" />2天21:15:33
            </span>
            <p>剩余时间</p>
          </div>
          <van-icon name="arrow"  custom-class="arrow"/>
          </navigator>
        </div>
      
        <div>
          <navigator url="consignmentDetails" hover-class="none">
          <h2>强生婴儿牛奶沐浴露</h2>
          <div>
            <span>1000</span>
            <p>商品价格</p>
          </div>
          <div>
            <span>
              <van-icon name="clock-o" />2天21:15:33
            </span>
            <p>剩余时间</p>
          </div>
          <van-icon name="arrow"  custom-class="arrow"/>
          </navigator>
        </div>
      
    </div>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  onReady() {},
  methods: {
    onClickLeft() {
      uni.navigateBack();
    },
    onClickRight() {
      uni.navigateBack();
    },
    onChange() {
      console.log(vvv);
    }
  }
};
</script>

<style lang="less">
.jimai {
  padding: 0 30upx;
  > div {
    background: #fff;
    border-radius: 20upx;
    padding: 20upx 35upx;
    position: relative;
    margin-bottom: 20upx;
    h2 {
      color: #070707;
      font-size: 26upx;
    }
    div {
      display: inline-block;
      width: 300upx;
      span {
        color: #ff4657;
        font-size: 46upx;
      }
      p {
        color: #b8b8b8;
      }

      &:nth-child(3) {
        span {
          color: #070707;
          font-size: 32upx;
        }
        van-icon {
          margin-right: 20upx;
          font-size: 30upx;
          vertical-align: text-top;
          color: #ff4657;
        }
      }
    }
    .arrow{
      position: absolute;
      right: 20upx;
      top: 50%;
      transform: translate(0, -50%);
      color: #b8b8b8;
      font-size: 30upx;
    }
  }
}
</style>
